﻿@model FTBS.Models.Entities.Level

@{
    ViewBag.Title = "Tạo mới";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<legend style="margin-top: 10px">TẠO CẤP KHÁCH HÀNG</legend>

@using (Html.BeginForm()) { 
    @Html.ValidationSummary(true)
    <table  class="table striped bordered hovered" style="margin :0px 0px 0px 40px">
        <tr>
            <th>
                    Cấp khách hàng (*)
            </th>
            <td>
                <div class="input-control text">
                    @Html.EditorFor(model => model.LevelName)
                       <p style="color:red;font-size:10pt"> @Html.ValidationMessageFor(model => model.LevelName)</p>                    
                    @if (ViewBag.Level != null)
                    {
                        <p style="color: red; font-size: 10pt">Cấp khách hàng này đã có sẵn!</p>
                    }
                </div>
            </td>
        </tr>
        <tr>
            <th>
                    Chỉ số (*)
            </th>
            <td>
                <div class="input-control text">
                    @Html.EditorFor(model => model.Rate)
                       <p style="color:red;font-size:10pt"> @Html.ValidationMessageFor(model => model.Rate)</p>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input class="large info"type="submit" value="Tạo mới" />
            </td>
        </tr> 
    </table>
}

<div>
    @Html.ActionLink("Quay Lại", "Index")
</div>

